package com.xyoto.community.vo;

import com.xyoto.community.utils.PictureUtils;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

/**
 * ClassName:   匿名用户信息展示VO
 * Author:      挽风
 * Date:        2020
 * Copyright:   2020 by 挽风1.0版本
 * Description:
 **/

@Data
@ApiModel("匿名用户信息VO")
public class AnonyUserVo {

    @ApiModelProperty("自增id")
    private Integer id;

    @ApiModelProperty("匿名用户id")
    private Integer userId;

    @ApiModelProperty("匿名头像id")
    private Integer anonymousAvatarUrlId;

    @ApiModelProperty("匿名用户名称id")
    private Integer anonymousNameId;

    @ApiModelProperty("匿名昵称")
    private String anonymousName;

    @ApiModelProperty("匿名头像地址")
    private String anonymousAvatarUrl;

    public void setAnonymousAvatarUrl(String anonymousAvatarUrl) {
        this.anonymousAvatarUrl = PictureUtils.addPrefix(anonymousAvatarUrl);
    }
}
